<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>LoveTemperature</title>
		<meta name="author" content="ningzero"/>

		<!-- CSS -->
		<link rel="stylesheet" href="../css/orderManage.css">
		<!-- end CSS-->

	</head>

	<body>

		<div id="container">
			<header class="header">
				<div id="login_cart_bar">
					<div id="loginRegisterDiv">
						您好，<s:property value="#session.user.name" />
						<a class="pinkAnchor" href="http://localhost:8080/lovetemperature/sale/logout">退出登录</a>
					</div>
					<div id="cartAccountDiv">
						<a class="pinkAnchor" onclick='javascript:window.location="http://localhost:8080/lovetemperature/shop/editStaff"'>我的页面</a>
					</div>
				</div>
				<div id="logo_bar">
					<img src="../img/logo.gif"/>
					<img id="logo_text" src="../img/logo2.png"/>
				</div>
				<div id="nav_bar">
					<ul>
						<li class="nav_padding_left"></li>
						<li class='shouye' >
							<a href="http://localhost:8080/lovetemperature/shop/showOrders">订单管理</a>
						</li>
						<li class='dangao' >
							<a href="http://localhost:8080/lovetemperature/shop/showGood">产品管理</a>
						</li>
					</ul>
				</div>
			</header>
			<div id="mainContent" class="mainContent">
				<h4><s:property value="shopName"/>　　订单列表</h4>
				<div id="ordersListDiv">
					<table>
						<thead>
							<tr>
								<th>订单号</th>
								<th>客户名</th>
								<th>下单日期</th>
								<th>取货日期</th>
								<th>金额</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<!-- 一笔订单begin -->
							<s:iterator value="orderList" status="count">
							<tr>
								<td class="orderNum"><s:property value="orderNum"/></td>
								<td class="customerName"><s:property value="customer.name"/></td>
								<td class="orderDate"><s:property value="putOrderDate"/></td>
								<td class="pickupDate"><s:property value="pickupDate"/></td>
								<td class="orderPrice">￥<s:property value="totalPrice"/></td>
								<td class="cartOperation" onclick="manageOneOrder(<s:property value="orderNum" />)">查看详情</td>
							</tr>
							</s:iterator>
							<!-- 一笔end -->
						</tbody>
					</table>
				</div>

			</div>
		</div>
		<!--! end of #container -->
		
		<footer id="footer">
			<img src="../img/tmp/tmpfooter.png" />
		</footer>

		<!-- scripts -->
		<script type="text/javascript" src="../js/libs/jquery-1.9.1.min.js" ></script>
		<script type="text/javascript" src="../js/index.js" ></script>
		<script>
			$(function(){
				
			});
			function manageOneOrder(orderNum){
				window.location="http://localhost:8080/lovetemperature/shop/orderDetail?orderNum="+orderNum;
			}
		</script>
		<!-- end scripts-->
	</body>
</html>
